﻿<Page x:Class="WpfPathExample.PageQuadraticBezier"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
     d:DesignHeight="480" d:DesignWidth="800"
	Title="PageQuadraticBezier">
    <Grid>
        
        <Path  Stroke="BlueViolet" StrokeThickness="3"  Data="M 10,10   260,40 400,430 " />

        <Path  Stroke="BlueViolet" StrokeThickness="3">
            <Path.Data>
                <PathGeometry>
                    <PathFigure StartPoint="10,10">
                        <QuadraticBezierSegment Point1="260,40" Point2="400,430"   IsSmoothJoin="True"/>
                    </PathFigure>
                </PathGeometry>
                
            </Path.Data>
        </Path>

        <Path  Stroke="Red" StrokeThickness="3"  Data="M 40,300   260,140 300,430 " />
        <Path  Stroke="Red" StrokeThickness="3"  Data="M 40,300 Q 260,140 300,430 " />

        <TextBlock VerticalAlignment="Center" Margin="10" Text="二次贝塞尔曲线命令  
通过使用指定的控制点 (controlPoint) 在当前点与指定的终点之间创建一条二次贝塞尔曲线。 q 100,200 300,200 是有效的二次贝塞尔曲线命令示例。 
"/>
    </Grid>
</Page>
